package com.canbot.u05.activity;

import android.os.Bundle;
import android.widget.TextView;

import com.canbot.u05.R;
import com.canbot.u05.utils.SPUtils;

public class SystemInfoActivity extends BaseActivityNoTitle {

        private SystemInfoActivity mContext;

        private TextView tv;

        @Override
        protected void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.activity_system_info);
                mContext = this;
                tv = (TextView) findViewById(R.id.textView1);
                String info = SPUtils.getString(mContext, "system_variable", "获取系统信息失败");


//       info = "deviceCode : "+SPUtils.getString(mContext, "deviceCode", "00000000")+"\n"+
//               "versionCode : "+SPUtils.getString(mContext, "versionCode", "00000000")+"\n"+
//               "mac : "+SPUtils.getString(mContext, "mac", "000000000000")+"\n"+
//               "musicVolume : "+SPUtils.getInt(mContext, "musicVolume", 0)+"\n"+
//               "systemBrightness : "+SPUtils.getInt(mContext, "systemBrightness", 0)+"\n"+
//               "battery : "+SPUtils.getString(mContext, "battery","电量获取失败");
                tv.setText(info);

        }


}
